<!DOCTYPE html>
<html xmlns:ec="http://www.gensee.com/ec">
<head>
<meta charset="utf-8" />
<title>easy cast</title>
<script type="text/javascript" src="sdk/js/ec.js"></script>

<script type="text/javascript">
	GsEc.redefineLog(function(msg){
		console.log(msg);
	});
	var room = GsEc.room();
	
	room.bind("qamsg", function(data){
		alert("接收到："+data);
	});
	
	function submitQa(){
		GsEc.room().command("qasu11bmit",{
			from:"user1",
			to:null,
			msg:"hello!"
		});
	}

	function sendMsg(){
		var SDK = GsEc._inner_;
		SDK.command("qamsg", "sendQaMsg-消息12356");
	}
</script>
</head>
<body>
<div>
三分屏（单直播间）
<hr>
	<ec:vd roomid="rUJVZr" uid="10000" uname="player" authcode="0"></ec:vd>
	<ec:doc roomid="rUJVZr" uid="10000" uname="tom" authcode="1"></ec:doc>
	<ec:qa roomid="rUJVZr" uid="10000" uname="tom" authcode="2" onmsg="appendMsg" onsubmit="submitQa"></ec:qa>
	<input type="button" value="提交问答" onclick="submitQa()"/><br/>
	<input type="button" value="服务端发送消息" onclick="sendMsg()"/>
</div>
</body>
</html>
